# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-url-encode
_dist=URL-Encode
pkgver=0.03
pkgrel=11
pkgdesc='Encoding and decoding of application/x-www-form-urlencoded encoding.'
arch=('any')
url='https://metacpan.org/dist/URL-Encode/view/lib/URL/Encode.pod'
license=('PerlArtistic')
depends=('perl>=5.8.1' 'perl-carp>=0' 'perl-exporter>=0' 'perl-xsloader>=0')
checkdepends=()
makedepends=('perl-test-simple>=0.88' 'perl-extutils-makemaker>=6.59')
provides=('perl-url-encode-pp=0.03')
options=('!emptydirs' 'purge')
source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHANSEN/${_dist}-$pkgver.tar.gz")
sha512sums=('1f47b9ca9470f0f51f4b3e806f32ef0044d10ab2723944ba93eb740278155fcb77471208b833f7d77ff829cc5879211f592a3ae6ba3ccd6a4ee38d866bb38197')

build() (
  cd "$_dist-$pkgver"

  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT

  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps

  /usr/bin/perl Makefile.PL

  make
)

package() (
  cd "$_dist-$pkgver"

  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT

  make INSTALLDIRS=vendor DESTDIR="$pkgdir" install
)

